#! /usr/bin/env bash

menu=$(zenity --width 120 --height 320 --list \
  --title="Shutting down..." \
  --column 'Option'\
    Poweroff  \
    Reboot    \
    Suspend   \
    Logout)

case $menu in
    "Poweroff") poweroff ;;
    "Reboot")   reboot ;;
    "Suspend")  /home/sny/.xmonad/sh/lock.sh | systemctl suspend ;;
    "Logout")   killall -u sny ;;
esac
